<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>密闭球</title>
</head>
<body>
<canvas id="myCanvas" width="600" height="500" style="border: 1px solid #ccc">
    糟糕 你的浏览器 我还搞不懂也？
</canvas>
<script>
    class Vector {
        constructor(x, y){
            this.x = x;
            this.y = y;
        }
    }
    const ball = {
        x: 100,
        y: 100,
        r: 15,
        v: 100 * Math.sqrt(2),
        direction: Math.PI / 4
    }
    const bigCircularity = {
        position: new Vector(200, 200)
    }

</script>



</body>
</html>